[data-scope="signature-pad"][data-part="root"] {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 400px;

  &[data-disabled] {
    opacity: 0.5;
  }
}

[data-scope="signature-pad"][data-part="label"] {
  display: inline-block;
  margin-bottom: 8px;
  font-weight: 500;
}

[data-scope="signature-pad"][data-part="control"] {
  position: relative;
  width: 100%;
  height: 160px;
  background-color: rgb(239, 239, 239);
  border-radius: 8px;
}

[data-scope="signature-pad"][data-part="guide"] {
  position: absolute;
  bottom: 12%;
  left: 8px;
  right: 8px;
  border-bottom: 2px dashed rgb(129, 133, 150);
}

[data-scope="signature-pad"][data-part="clear-trigger"] {
  position: absolute;
  top: 32px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;

  & svg {
    width: 1em;
    height: 1em;
  }
}

.signature-pad [data-part="preview"] {
  height: 160px;
  object-fit: cover;
  max-width: 100%;
}
